package com.base.core.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 常用工具
 */
public class CommonUtils {

    public static String replaceBlank(String str) {

        String dest = "";

        if (str != null) {

            Pattern p = Pattern.compile("\\s*|\t|\r|\n");

            Matcher m = p.matcher(str);

            dest = m.replaceAll("");

        }

        return dest;

    }
}
